import request from '@/utils/request.js'


/** 获取我的工单列表列表 */
export function getMyOrderListAPI(params) {
	let url = `/workorder/work/enginePage`
	if(params.status === '2') { //已经接受到的
		url = `/workorder/work/enginePublishPage`
	}
	delete params.status
	return request({
		url: url,
		method: 'get',
		params: params
	});
}

/** 工程师接收事件 */
export function receiveOrderAPI(data) {
	return request({
		url: `/workorder/work/takeOrders`,
		method: 'post',
		data: data
	});
}


/** 工程提交解决方案 */
export function submitReceiceAPI(data) {
	return request({
		url: `/workorder/engine/processOrder`,
		method: 'post',
		data: data
	});
}

